package com.chennan.spring.demo.annotation.componentscan;

import com.chennan.spring.service.MyService;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @author chennan
 * @create 2021-11
 */
@Configuration
@ComponentScan(value="com.chennan.spring",includeFilters = {
//        @ComponentScan.Filter(type = FilterType.ANNOTATION,value = {Controller.class})},
//        @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,value = {MyService.class})},
        @ComponentScan.Filter(type = FilterType.CUSTOM,value = {MyTypeFilter.class})},
        useDefaultFilters = false)

public class ComponentScanTest {
}
